<template>
  <div class="select-box">
      <a-select placeholder="全部类型"  v-model:value="typevalue"    >
        <a-select-option value="全部类型">全部类型</a-select-option>
        <a-select-option value="阈值类">阈值类</a-select-option>
        <a-select-option value="离线类">离线类</a-select-option>
        <a-select-option value="故障类">故障类</a-select-option>
      </a-select>
    <a-input-search
      placeholder="搜索风口类型"
      v-model:value="search"
    />
  </div>
</template>
<script setup>
import './select.scss'
import {ref,watch} from 'vue'
import emitt from '@/utils/eventBus';

const typevalue = ref('全部类型')

watch(typevalue, (newValue, oldValue) => {
  emitt.emit("changeType", newValue);
});


const search = ref('');
watch(search, (newValue, oldValue) => {
  emitt.emit("changePos", newValue);
});

</script>
